class_name InputDemo
extends LineEdit

func _init():
    _loadFont();
    self.placeholder_text = "请输入测试内容"
    self.rect_size = Vector2(500,250)
    self.connect("text_entered",self,"text_input")

func _loadFont():
    var dynamic_font = DynamicFont.new()
    dynamic_font.font_data = load("res://assets/fonts/FZKTK.TTF")
    dynamic_font.size = 32
    self.set("custom_fonts/font", dynamic_font);


func text_input(text):
    print("input",text);